package com.leetroll.api.service;

import com.leetroll.common.entity.UserAction;

import java.util.Map;

public interface UserActionService extends SuperService<UserAction> {
    UserAction getByAction( Long itemId, String action);

    Map<String, Long> countByItemIdAndAcion(Integer itemId);

    int[] listItemIdsByActionAndUser(String action, Integer pageNumber, Integer pageSize);

    Integer countItemsByActionAndUser(String action);

    int countItemsByAction(Long itemId, String action);
}
